﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage/PBOAMasterPage.master" AutoEventWireup="true" CodeFile="MeetingUpdate.aspx.cs" Inherits="MeetingManager_MeetingUpdate" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<div id="meetinglink">
    <asp:LinkButton ID="lkbMeeting" runat="server" onclick="lkbMeeting_Click" Text="添加会议室"  ></asp:LinkButton></div>
    <br />
    <div id ="dgmeeting">
        <asp:GridView ID="gvMeeting" runat="server" CellPadding="4" ForeColor="#333333" 
            GridLines="None" Width="740px" AutoGenerateColumns="False" 
            DataSourceID="ObjectDataSource1">
            <AlternatingRowStyle BackColor="White" />
            <Columns>
                <asp:BoundField DataField="RoomNo" HeaderText="编号" SortExpression="RoomNo">
                <ItemStyle HorizontalAlign="Center" />
                </asp:BoundField>
                <asp:BoundField DataField="RoomId" HeaderText="名称" SortExpression="RoomId">
                <ItemStyle HorizontalAlign="Center" />
                </asp:BoundField>
                <asp:BoundField DataField="RoomArea" HeaderText="面积" SortExpression="RoomArea">
                <ItemStyle HorizontalAlign="Center" />
                </asp:BoundField>
                <asp:BoundField DataField="RoomPeopleNo" HeaderText="人数" 
                    SortExpression="RoomPeopleNo">
                <ItemStyle HorizontalAlign="Center" />
                </asp:BoundField>
                <asp:BoundField DataField="RoomEquitpment" HeaderText="装备" 
                    SortExpression="RoomEquitpment">
                <ItemStyle HorizontalAlign="Center" />
                </asp:BoundField>
                <asp:BoundField DataField="RoomTypeId" HeaderText="类型" 
                    SortExpression="RoomTypeId">
                <ItemStyle HorizontalAlign="Center" />
                </asp:BoundField>
                <asp:TemplateField HeaderText="修改" ShowHeader="False">
                    <ItemTemplate>
                        <asp:ImageButton ID="ibMeetingUpdate" runat="server" 
                            ImageUrl="~/Images/edit.gif" 
                            PostBackUrl='<%# "~/MeetingManager/AddMeeting.aspx?id="+Eval("RoomNo") %>'/>
                   </ItemTemplate>
                    <ItemStyle HorizontalAlign="Center" />
                </asp:TemplateField>
                <asp:TemplateField HeaderText="删除" ShowHeader="False">
                    <ItemTemplate>
                        <asp:ImageButton ID="ImageButton1" runat="server"  
                            CommandName="" ImageUrl="~/Images/delete.gif" Text="" />
                    </ItemTemplate>
                    <ItemStyle HorizontalAlign="Center" />
                </asp:TemplateField>
            </Columns>
            <EditRowStyle BackColor="#2461BF" HorizontalAlign="Center" />
            <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
            <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" 
                Height="30px" />
            <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
            <RowStyle BackColor="#EFF3FB" />
            <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
            <SortedAscendingCellStyle BackColor="#F5F7FB" />
            <SortedAscendingHeaderStyle BackColor="#6D95E1" />
            <SortedDescendingCellStyle BackColor="#E9EBEF" />
            <SortedDescendingHeaderStyle BackColor="#4870BE" />
        </asp:GridView>
        <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" 
            DataObjectTypeName="PBOffice.DAL.MeetingRoom" SelectMethod="ShowMeetingInfor" 
            TypeName="PBOffice.BLL.MeetingManagerBLL" UpdateMethod="UpdateMeetingInfor">
        </asp:ObjectDataSource>
    </div>
</asp:Content>

